<!-- 教练 – 我的 – 我的证书			certificate -->
<template>
	<view class="pb30">
	<!-- 	<view class="certificate-top senter">
			<text class="fs24" style="color:#FF7105;">请上本人技能证书</text>
		</view> -->
		<!-- <view class="certificate-pai">
			<view class="f d c" style="padding-top:120rpx;">
				<image style="width: 48rpx;height: 48rpx;" src="../../../static/img/091.png" mode=""></image>
				<text>拍照上传</text>
			</view>
		</view> -->
		<!-- <view class="xuxian m_t_100"></view> -->
		<view class="certificate-img f b c mar m_t_30" @click="chakan(index)" v-if="content != ''" v-for="(item,index) in content" :key="index">
				<image style="width: 100%;" :src="item" mode="widthFix"></image>
		</view>
		<view class="dis-flex flex-align-center flex-center" style="height: 1000rpx;" v-else>
			<u-empty text="暂无技能证书" mode="list"></u-empty>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				content:[]
			}
		},
		onLoad(e) {
			// 动态导航条文字
			uni.setNavigationBarTitle({
				title: '技能证书'
			})
			this.content = JSON.parse(e.zhengshu)
		},
		methods: {
			chakan(index){
				this.$api.previewImage(index,this.content)
			}
		}
	}
</script>
<style>
	
	page{
		background-color: #FFFFFF;
	}
</style>
<style scoped>
	
	.certificate-top{
		width: 686rpx;
		height: 50rpx;
		line-height:50rpx;
		opacity: 1;
		background: #ffebdb;
		border-radius: 8rpx;
		margin:0 auto;
		margin-top:30rpx;
	}
	.certificate-pai{
		width: 686rpx;
		height: 360rpx;
		opacity: 1;
		background: #f6f8fc;
		border-radius: 8rpx;
		margin:0 auto;
		margin-top:32rpx;
	}
	.certificate-img{
		width:90%;
	}
</style>
